import { memo } from 'react'
import { RouteList } from './router'
import { BrowserRouter } from 'react-router-dom'
import { ConfigProvider } from 'antd'
import zhCN from 'antd/locale/zh_CN'
import AuthRoute from './router/authRoute'

const App = memo(() => {
	return (
		<ConfigProvider locale={zhCN}>
			<BrowserRouter>
				<AuthRoute>
					<RouteList />
				</AuthRoute>
			</BrowserRouter>
		</ConfigProvider>
	)
})

export default App
